package edu.xpu.compute.recommend.fontpage.admin.user;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestParam;

import edu.xpu.compute.recommend.common.annotation.Router;

@Controller
@Router(value="web/user/borrow")
public class UserBorrowRouter {

	/**
	 * 列表
	 * @return
	 */
	@Router(value="list")
	public String borrowList() {
		return "admin/borrow/borrowList";
	}
	/**
	 * 新增
	 * @return
	 */
	@Router(value="add")
	public String borrowAdd(@RequestParam(value="id", required=false) Long id, ModelMap modelMap) {
		modelMap.addAttribute("id", id);
		return "admin/borrow/borrowAdd";
	}
	/**
	 * 详情
	 * @return
	 */
	@Router(value="detail")
	public String borrowDetail(@RequestParam(value="id") Long id, ModelMap modelMap) {
		modelMap.addAttribute("id", id);
		return "admin/borrow/borrowDetail";
	}
}
